package com.neusoft.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.service.PasswordService;
import com.neusoft.vo.PasswordVO;

@CrossOrigin
@RestController
public class PasswordHandler {

	@Autowired 
	private PasswordService ps;
	
	@PostMapping("/changePassword")
	public int updatePassword(@RequestBody PasswordVO vo) {
		System.out.println(111);
		return ps.updatePassword(vo);
	}
}
